package com.ouc.edu.ssm.service.impl;

import com.ouc.edu.ssm.bean.Chief_info;
import com.ouc.edu.ssm.bean.User;
import com.ouc.edu.ssm.mapper.InsertUserTestMapper;
import com.ouc.edu.ssm.service.TestUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TestUserServiceImpl implements TestUserService {
    @Autowired
    InsertUserTestMapper insertUserTestMapper;

    public void setInsertUserTestMapper(InsertUserTestMapper insertUserTestMapper) {
        this.insertUserTestMapper = insertUserTestMapper;
    }

    @Override
    public boolean insertUser(User user) {
        boolean flag=insertUserTestMapper.insertUser(user);
        return flag;
    }

    @Override
    public List<Chief_info> TestMap(int id) {
        List chief_info = insertUserTestMapper.testResultMap(id);
        return chief_info;
    }
}
